package com.efast.dmom.mes.datahandlers.base;

import java.util.List;

import com.efast.dmom.mes.bean.ResultBean;
import com.efast.dmom.mes.bean.base.QualityBaseBean;

public abstract class QualityBaseDataHandler<T extends QualityBaseBean<?>> extends DataHandler<T>{


	public abstract T getByName(String name);
	
	public abstract T getByCode(String code);

	public abstract void batchDeleteById(List<T> list);
	
	public  ResultBean setErrorMessage(String message) {
		ResultBean resultBean = new ResultBean(false);
		resultBean.setMessage(message);
		return resultBean;
		
	}

	

}
